//
//  ViewController.m
//  FYTestUI
//
//  Created by Sean on 15/3/31.
//  Copyright (c) 2015年 FeiYu. All rights reserved.
//

#import "ViewController.h"
#import "FYDBCheck.h"

@interface ViewController ()
@property (weak, nonatomic) IBOutlet UILabel *labJailbreak_1;
@property (weak, nonatomic) IBOutlet UILabel *labCracking;
- (IBAction)btnJailbreak_1:(id)sender;
- (IBAction)btnCracking:(id)sender;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)btnJailbreak_1:(id)sender {

    if ([FYDBCheck isYY]) {
        self.labJailbreak_1.text = @"已越狱";
    } else {
        self.labJailbreak_1.text = @"未越狱";
    }
}

- (IBAction)btnCracking:(id)sender {

    if ([FYDBCheck isPJ]) {
        self.labCracking.text = @"已破解";
    } else {
        self.labCracking.text = @"未破解";
    }
}

@end
